import request from "@/utils/request";

export function listChannelProduct(params) {
  return request({
    url: "/api/czChannelProduct/productList",
    method: "GET",
    params,
  });
}
export function setMutiplePrice(data) {
  return request({
    url: "/api/czChannelProduct/setPrice",
    method: "POST",
    data,
  });
}
export function getChannelProduct(id) {
  return request({
    url: "/api/czChannelProduct/getProduct",
    method: "GET",
    params: { id },
  });
}
export function updateChannelProduct(data) {
  return request({
    url: "/api/czChannelProduct/updateProduct",
    method: "POST",
    data,
  });
}
export function addChannelProduct(data) {
  return request({
    url: "/api/czChannelProduct/addProduct",
    method: "POST",
    data,
  });
}
export function delChannelProduct(ids) {
  return request({
    url: "/api/czChannelProduct/destroyProduct",
    method: "POST",
    data: { ids },
  });
}
